import request from '@/utils/request'

// 查询政府部门管理列表
export function listGovernment(query) {
  return request({
    url: '/manage/government/list',
    method: 'get',
    params: query
  })
}

// 查询政府部门管理详细
export function getGovernment(id) {
  return request({
    url: '/manage/government/' + id,
    method: 'get'
  })
}

// 新增政府部门管理
export function addGovernment(data) {
  return request({
    url: '/manage/government',
    method: 'post',
    data: data
  })
}

// 修改政府部门管理
export function updateGovernment(data) {
  return request({
    url: '/manage/government',
    method: 'put',
    data: data
  })
}

// 删除政府部门管理
export function delGovernment(id) {
  return request({
    url: '/manage/government/' + id,
    method: 'delete'
  })
}
